WPDesk\ShopMagicCart\Interceptor\CartInterceptor A

Total Complexity 60
Dependencies 19
Dependents 0
Total lines 437
Lines of code 327
Logical lines of code 147
Comment lines 29
Methods 17
Properties 7

Methods 17

Method Rating Maintainability Complexity Lines of code
sync_cart_with_order()
A
39 8 76
mark_as_ordered()
A
40 8 71
should_save_cart()
A
49 10 32
do_save_cart()
A
47 8 37
get_cart()
S
51 4 28
trigger_update_on_cart_and_checkout_pages()
S
66 4 9
get_tracking_key()
S
67 3 7
hooks()
S
54 1 21
get_user_agent()
S
77 2 3
is_needed()
S
72 2 6
set_changed_into_cookie()
S
73 2 5
set_changed_from_cookie()
S
71 2 6
save_cart()
S
68 2 7
set_changed()
S
81 1 3
store_tracking_key()
S
80 1 3
separate_cart_from_session()
S
73 1 5
__construct()
S
67 1 8